package com.hyc.myvideo.data.api.model;

import java.io.Serializable;


/***
 * 用户登录信息
 */
public class UserInfo implements Serializable {
    //标记是否登录
    private boolean login = false;
    private String user_id;
    private String user_phone = "";//电话号码
    private String user_nickname = "";//昵称
    private String user_password = "";//密码
    private String user_type = "";//1=普通会员，2=主播
    private String user_balance = "";//余额
    private String user_off = "";//0=开启，1=禁止
    private String user_time = "";
    private int user_vip_state = 0;//0=普通会员,1=vip会员,2=永久vip会员
    private String user_vip_day = "";//vip购买天数
    private String user_vip_end_time = "";//vip到期时间
    private String user_token = "";
    private String vip_name = "";
    private String user_face = "";// 头像
    private String user_vip_name = "";// 等级名称
    private String user_surplus_day = "";// 剩余天数

    public String getUser_surplus_day() {
        return user_surplus_day;
    }

    public void setUser_surplus_day(String user_surplus_day) {
        this.user_surplus_day = user_surplus_day;
    }

    public boolean isLogin() {
        return login;
    }

    public void setLogin(boolean login) {
        this.login = login;
    }

    public UserInfo() {
    }

    public String getUser_face() {
        return user_face;
    }

    public void setUser_face(String user_face) {
        this.user_face = user_face;
    }

    public String getUser_vip_name() {
        return user_vip_name;
    }

    public void setUser_vip_name(String user_vip_name) {
        this.user_vip_name = user_vip_name;
    }


    public String getUser_id() {
        return user_id;
    }

    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }

    public String getUser_phone() {
        return user_phone;
    }

    public void setUser_phone(String user_phone) {
        this.user_phone = user_phone;
    }

    public String getUser_nickname() {
        return user_nickname;
    }

    public void setUser_nickname(String user_nickname) {
        this.user_nickname = user_nickname;
    }

    public String getUser_password() {
        return user_password;
    }

    public void setUser_password(String user_password) {
        this.user_password = user_password;
    }

    public String getUser_type() {
        return user_type;
    }

    public void setUser_type(String user_type) {
        this.user_type = user_type;
    }

    public String getUser_balance() {
        return user_balance;
    }

    public void setUser_balance(String user_balance) {
        this.user_balance = user_balance;
    }

    public String getUser_off() {
        return user_off;
    }

    public void setUser_off(String user_off) {
        this.user_off = user_off;
    }

    public String getUser_time() {
        return user_time;
    }

    public void setUser_time(String user_time) {
        this.user_time = user_time;
    }

    public int getUser_vip_state() {
        return user_vip_state;
    }

    public void setUser_vip_state(int user_vip_state) {
        this.user_vip_state = user_vip_state;
    }

    public String getUser_vip_day() {
        return user_vip_day;
    }

    public void setUser_vip_day(String user_vip_day) {
        this.user_vip_day = user_vip_day;
    }

    public String getUser_vip_end_time() {
        return user_vip_end_time;
    }

    public void setUser_vip_end_time(String user_vip_end_time) {
        this.user_vip_end_time = user_vip_end_time;
    }

    public String getUser_token() {
        return user_token;
    }

    public void setUser_token(String user_token) {
        this.user_token = user_token;
    }

    public String getVip_name() {
        return vip_name;
    }

    public void setVip_name(String vip_name) {
        this.vip_name = vip_name;
    }

    @Override
    public String toString() {
        return "UserInfo{" +
                "login=" + login +
                ", user_id='" + user_id + '\'' +
                ", user_phone='" + user_phone + '\'' +
                ", user_nickname='" + user_nickname + '\'' +
                ", user_password='" + user_password + '\'' +
                ", user_type='" + user_type + '\'' +
                ", user_balance='" + user_balance + '\'' +
                ", user_off='" + user_off + '\'' +
                ", user_time='" + user_time + '\'' +
                ", user_vip_state=" + user_vip_state +
                ", user_vip_day='" + user_vip_day + '\'' +
                ", user_vip_end_time='" + user_vip_end_time + '\'' +
                ", user_token='" + user_token + '\'' +
                ", vip_name='" + vip_name + '\'' +
                ", user_face='" + user_face + '\'' +
                ", user_vip_name='" + user_vip_name + '\'' +
                ", surplus_day='" + user_surplus_day + '\'' +
                '}';
    }

    //退出时清空信息
    public void clearAllData() {
        this.user_id = "";
        this.user_phone = "";//电话号码
        this.user_nickname = "";//昵称
        this.user_password = "";//密码
        this.user_type = "";//1=普通会员，2=主播
        this.user_balance = "";//余额
        this.user_off = "";//0=开启，1=禁止
        this.user_time = "";
        this.user_vip_state = 0;//0=普通会员,1=vip会员,2=永久vip会员
        this.user_vip_day = "";//vip购买天数
        this.user_vip_end_time = "";//vip到期时间
        this.user_token = "";
        this.vip_name = "";
        this.user_face = "";// 头像
        this.user_vip_name = "";// 等级名称
        this.user_surplus_day = "";// 剩余天数
    }
}
